package com.sen.service;

import com.sen.model.dto.CommentDTO;
import com.sen.model.entity.BmsComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sen.model.entity.UmsUser;
import com.sen.model.vo.CommentVO;

import java.util.List;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author ergou
 * @since 2021-04-14
 */
public interface BmsCommentService extends IService<BmsComment> {

    /**
     * getCommentsByTopicID
     *
     * @param topicid
     * @return {@link BmsComment}
     */
    List<CommentVO> getCommentsByTopicID(String topicid);

    BmsComment create(CommentDTO dto, UmsUser user);
}
